<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8;" />
<title>{% block title %}{{ _('Quality is affordable') }}{% endblock %} - ATENET.</title>
{% block csslink %}
	<link href="/media/css/style.css" rel="stylesheet" type="text/css" />
{% endblock %}
</head>

<body>
<div class="main">
<div class="tophead">
<h1 class="logo"><a href="{{ uri_for('mainpage') }}">ATENET. {{ immeuble.syndic.name }}</a></h1>  
<span>
    <a href="#">{{_('Help')}}</a> | <a href="{{ uri_for('parametrage_account', imm_id=app_user.last_active_immeuble_id, command='list') }}">{{ _('Settings') }}</a> | <a href="{{ uri_for('users', imm_id=app_user.last_active_immeuble_id, command='profile') }}">{{ app_user }}</a> (<a href="{{ lurl }}">{{_('Logout')}}</a>)&nbsp;&nbsp;
</span>
<span style="float: right; display: inline; margin-right: 10px; margin-top: 0px">
{{ _("Current tenement") }}: <select onChange="ImmChange();" name="imm" id="imm">
	{% for s in app_user.user_syndics.run() -%}
	{% for imm in s.syndic.imm_syndic_set.order('name').run() -%}
	<option value="{{ imm.key().id() }}"{% if app_user.last_active_immeuble_id == imm.key().id() %} selected{% endif %}>{{ imm.name }} ({{_('Street')}}: {{ imm.adress }})</option>
	{% endfor %}
	{% endfor %}	
</select>
<form name="lang_form" id="lang_form" action="{{ uri_for('users', imm_id=app_user.last_active_immeuble_id, command='set_lang') }}" method="post" style="display: inline;">
<select name="lang" id="lang" onChange="this.form.submit();">
	<option value="fr"{% if app_user.lang == 'fr' %} selected{% endif %}>fr</option>
	<option value="en"{% if app_user.lang == 'en' %} selected{% endif %}>en</option>
</select>
</form>
</span> 
</div>

<div class="header">
<div class="headertext">{{ _('Quality is affordable') }}</div>
</div>
<div class="belowheader"><div id="menu">
  <ul>
	{% block main_navigation %}
    <li><a href="/ams/" {% if not section %} class="active" {% endif %}><span>{{_('Home')}}</span></a></li>
	 {% if app_user != None %}
    <li><a href="{{ uri_for('immeuble', imm_id=app_user.last_active_immeuble_id, command='detail') }}" {% if section == 'creation' %} class="active" {% endif %}><span>{{ _('Create tenement') }}</span></a></li>
    <li><a href="{{ uri_for('vie_invoice', imm_id=app_user.last_active_immeuble_id, command='list') }}" {% if section == 'vie' %} class="active" {% endif %}><span>{{ _('Daily operations') }}</span></a></li>
    <li><a href="#"><span>{{ _('Inquiries') }}</span></a></li>
    <li><a href="#"><span>{{ _('Closing') }}</span></a></li>
    <!--   <li><a href="{{ uri_for('report', imm_id=app_user.last_active_immeuble_id, command='list') }}" {% if section == 'reports' %} class="active" {% endif %}><span>{{ _('Reports') }}</span></a></li> -->
    {% endif %}
	{% endblock main_navigation%}
  </ul>
</div></div>
<div class="contents">
{% block left_column %}
<div class="right">
<div class="rightbox">
<div class="rightboxhead"></div>
<div class="rightboxcontent">
  <ul>
	{% block section_menu %}
    <li><a href="#">Position 1</a></li>
    <li><a href="#">Position 2</a></li>
    <li><a href="#">Position 3</a></li>
    <li><a href="#">Position 4</a></li>
    {% endblock %}
  </ul>
</div>
<div class="rightboxbottom"></div>
</div>
</div>
{% endblock left_column %}
<div class="left"><h2>{% block header %}{{ _('ATENET. Tenements management') }}{% endblock %}</h2>
{% block main_content %}
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec viverra  mauris nec metus. Nullam non eros at neque pharetra euismod. Cras  fermentum, ipsum elementum dapibus sodales, urna sapien varius massa,  at bibendum dolor erat at diam. Morbi dignissim mattis mi. Sed molestie  iaculis purus. Donec gravida scelerisque nunc. Aenean ac nulla. Proin  egestas orci non mauris. Curabitur varius fringilla metus. Nulla  nonummy bibendum enim. Fusce nibh. Cras viverra. </p>

<h2>What do I do ? </h2>
    <p>Nulla laoreet faucibus ante. Quisque turpis justo, rutrum in,  tincidunt id, consequat ut, pede. Nam et velit quis augue faucibus  ullamcorper. Etiam velit. Fusce dui neque, feugiat vitae, tincidunt ut,  sollicitudin eget, sapien. Nullam commodo. Maecenas metus. </p>
<blockquote>Nunc  condimentum vestibulum nisi. Vestibulum nisi. Fusce auctor. Aliquam  tristique. Curabitur eget arcu. Class aptent taciti sociosqu ad litora  torquent per conubia nostra, per inceptos hymenaeos. Pellentesque  habitant morbi tristique senectus et netus et malesuada fames ac turpis  egestas. Praesent rhoncus dapibus risus. Proin ut felis. Donec dui  eros, ornare vel, fringilla in, aliquam ac, lectus. Etiam vestibulum  feugiat dolor.</blockquote>
    <p>Maecenas a risus sit amet libero suscipit dignissim. Cum sociis  natoque penatibus et magnis dis parturient montes, nascetur ridiculus  mus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Pellentesque blandit, augue eget porttitor aliquet, quam sapien  tincidunt est, ut dapibus nisi arcu varius felis. Vestibulum enim nibh,  varius sit amet, lobortis eget, porta vel, sapien. Curabitur vel nisi.  Vestibulum ligula tortor, suscipit consectetuer, pellentesque et</p>
{% endblock %}
</div>
</div>
</div>
<div class="footer">
<div class="footerbottom">
<div class="footerleft">Copyright &copy; <a href="#">ATENET</a> 2012</div>
<div class="footerright"><a href="#">Back to Top</a></div>
</div>
<script type="text/javascript">
function ImmChange() {
	window.location = '/ams/immeubles/switch/' + document.getElementById("imm").value + '/';
}
function LangChange() {
	
}
</script>
</body>
</html>
